<div class="titles">
<?php if (isset($products)){if ($products != ""){ foreach($products as $p){ ?>
		<h1><?php echo $p['name']; ?></h1>
		<?php }}} ?>
		</div>

<div class="products">
<?php if (isset($products)){if ($products != ""){ foreach($products as $p){ ?>
	    
        
		<div class="productdetails">
		<div class="productimg">
		<img width="200" height="160" src="<?php echo WEB_URL; ?>admin/files/<?php echo $p['image']; ?>" alt="" />      </div>
		<div class="productcart">
		<form action="<?php echo WEB_URL; ?>index.php/cart/add_cart_item" method="post">
			
				
				<?php echo form_hidden('quantity', '1'); ?>
				<?php echo form_hidden('product_id', $p['id']); ?>
				<button class="addtocart" value="Add" name="add"></button>
			
		</form>
	    </div>	
		</div>
		
		<div class="productdesc">		   
		  <div class="deschead">
			   <img style="width:13px;height:13px;" src="<?php echo WEB_URL; ?>uifiles/images/title-tabArrow.gif">
			   Product Overview
		   </div>
		   <div class="productrev">
		     <?php echo $p['body']; ?>
		   </div>
		   <div class="pricerev">
		     Price : Rs.<?php echo $p['price']; ?>
		   </div>
		</div>
		
		
	<?php }}} ?>
</div>
<div class="clear"></div>

<div class="moreprod">
  <div class="prodlist">&gt;&gt;&nbsp;Select Another Product:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  
  <?php if (isset($prodlist)){if ($prodlist != ""){ foreach($prodlist as $pl){ ?>
  
       <img src="<?php echo WEB_URL; ?>/uifiles/images/bg-list.gif"><a href="<?php echo WEB_URL;?>index.php/cart/home_products/<?php echo $pl['id']; ?>"><?php echo $pl['name'];?></a>&nbsp;
	   
	   <?php }}} ?>
  
  </diV>
</div>
